<?php 
$total = 0;
if($this->cart){
    $total = count($this->cart->item);
//     foreach ($this->cart->item as $item_cart){
//         $total += count($item_cart['product']->product_id);
//     }
}?>
<h4><a href="<?php echo $this->baseUrl('gio-hang/xem.html')?>" title="xem giỏ hàng"><?php echo $this->translate('Shopping')?></a></h4>
<img src="<?php echo $this->baseUrl('default/')?>images/shopping_trolley.png" alt="shopping cart"/>
<p><a href="<?php echo $this->baseUrl('gio-hang/xem.html')?>" title="xem giỏ hàng"><span><?php echo $total?></span> <?php echo $this->translate('Product')?></a></p>
